package com.zq.behavior.strategy;

import java.util.Random;

public class Client {
    public static void main(String[] args) {
        Random random = new Random();
        Integer[] array = random.ints().limit(10).boxed().toArray(Integer[]::new);

        SortContext<Integer> context = new SortContext<>();
        context.setSortStrategy(new QuickSortStrategy<>());

        context.sort(array);

        System.out.println(array);
    }
}
